﻿package mortal.game.view.rebate.item
{
    import com.mui.controls.*;
    import mortal.common.swfPlayer.*;
    import mortal.common.swfPlayer.data.*;
    import mortal.game.scene3D.player.info.*;
    import mortal.game.view.common.*;

    public class ScaleSwfPlayer extends GSprite
    {
        public var swf:SWFPlayer;

        public function ScaleSwfPlayer()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this.swf = UIFactory.getUICompoment(SWFPlayer);
            this.addChild(this.swf);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this.swf.dispose(param1);
            this.swf = null;
            return;
        }// end function

        public function load(param1:String, param2:ModelType, param3:IModelInfo, param4:int = 2) : void
        {
            this.swf.load(param1, param2, param3, param4);
            return;
        }// end function

        override public function move(param1:Number, param2:Number) : void
        {
            this.x = param1 * this.scaleX;
            this.y = param2 * this.scaleY;
            return;
        }// end function

    }
}
